import 'package:flutter/material.dart';
import 'package:hkzf/pages/home/info/index.dart';
import 'package:hkzf/pages/home/tab_profile/advertisement.dart';
import 'package:hkzf/widgets/common_image.dart';

import 'function_button.dart';
import 'header.dart';

class TabProfile extends StatelessWidget {
  const TabProfile({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('我的'),
        actions: [
          IconButton(
              icon: Icon(Icons.settings),
              onPressed: () {
                Navigator.pushNamed(context, '/setting');
              })
        ],
      ),
      body: ListView(
        children: [
          Header(),
          FunctionButton(),
          Advertisement(),
          Info(
            showTitle: true,
          )
        ],
      ),
    );
  }
}
